package com.wr.service;

import com.wr.model.User;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/511:40
 */
public interface UserService {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    User getByEmail(String email);

    User getUserByUserName(String username);

    User authLogin(User user);

    public User getLoginedUserByToken(String token) throws Exception;

    public void logout(String token);

    /**
     * @desc 重置密码
     * @param user
     */
    void resetPw(User user);

}
